package com.tiger.auto_ops.sys.dto;

import lombok.Data;
import lombok.NonNull;

import java.util.Date;
import java.util.List;

/**
 * @author lidejiang
 * @date 2021/8/8
 * @note
 */
@Data
public class OrganizationDto {
    @NonNull
    // Primary key.
    private int id;

    @NonNull
    // Organization's code.
    private String code;

    @NonNull
    // Organization's name.
    private String name;

    // Organization's parent ID.
    private int pid;

    // Organization's short name.
    private String shortName;

    // Indicates wheter the record is valid.
    private int isValid;

    // Indicates whether the record is deleted. It is used for soft delete.
    private int isDelete;

    // Notes for the record.
    private String remark;

    // The ID of user who created the record.
    private int createBy;

    // The date of user who created the record.
    private Date createDate;

    // The ID of user who updated the record.
    private int updateBy;

    // The date of user who updated the record.
    private Date updateDate;

    // A subrecord ot this record.
    private List<OrganizationDto> subrecords;
}
